package cn.ava.ymcc.dto;

import cn.ava.ymcc.domain.CourseType;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
public class CourseTypeDto extends CourseType {

    private String label;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<CourseTypeDto> children;

}
